<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<%
	String userid = (String)session.getAttribute("userid");
	if(userid != null){
		out.print("You are logged in.");
	}else{
		out.print("You are not logged in.");
	}
%>
ok
	<form name="frmLogout" action="./login.do" method="get">
		<input type="submit" value="logout"> 
	</form>
<a href="./memberonly.jsp">click to go member page.</a><br>
<a href="<%= response.encodeURL("./memberonly.jsp")%>">keep logged in without cookies.</a><br>
<a href="./login.do">logout link</a><br>
</body>
</html>